#ifndef SERVEUR_H
#define SERVEUR_H
#include <string>
#include <vector>
#include <winsock2.h>
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <conio.h>

class Serveur
{
    public:
        Serveur();
        virtual ~Serveur();
        int connexion();
        int chat();
        bool gestionTexte();
        bool gestionSon();
        bool sonDisponible();
        void activerSon();
        int envoyerSon();
        int recevoirSon();
        int envoyerTexte();
        int recevoirTexte();
    protected:

    private:
        fd_set rfds;
        struct timeval tv;
        int retval;
        bool moduleSon;
        WSADATA WSAData;
        SOCKET sock;
        SOCKET sockCHL;
        SOCKET sockSon;
        SOCKADDR_IN sin;
        SOCKADDR_IN csin;
        std::vector<SOCKET> sockVect;
};

#endif // SERVEUR_H
